<div class="product-box-head">
    <div class="product-box-head-left">
        <h3><?php echo $category->getTitle(); ?> <span>(<?php echo count($aProduct); ?>)</span></h3>
    </div>
    <div class="clear"> </div>
    <?php if(isset($pagingBar) && $pagingBar!='') { echo $pagingBar; } ?>
</div>

<div class="product-grids">
    <?php
    $pCount = 1;
    foreach($aProduct as $product) {
        $this->load->view('shop-themes/'.$shop->template.'/layout/product-item.html.php',
            array(
                'product' => $product,
                'pCount'=>$pCount
                )
            );
        $pCount = ($pCount==3?1:($pCount+1));
    }
    ?>
    <div class="clear"> </div>
</div>